<?php


namespace app\common\model;

use think\Model;

class ShopsubjectModel extends Model
{
    protected $name = 'shopsubject';
    public function getStatusAttr($value,$data)
     {
         $arr = [
             '1' => '启用',
             '2' => '禁用',
         ];
         return $arr[$data['status']];
      }

}